package com.quectel.cms.vo.device;

import com.quectel.core.module.device.dto.DeviceDto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: rananxin
 * @email: ryan.ran@quectel.com
 * @date: 2021/11/2 1:48 下午
 */
@Data
@Schema
@EqualsAndHashCode(callSuper=true)
public class DeviceInfoVo extends DeviceDto {

    @Schema(description = "最近数据")
    private List<DataInfoCls> lastDataInfo = new ArrayList<>();

    @Schema(description = "个性属性信息")
    private List<DynamicAttrInfoCls> dynamicAttrInfo = new ArrayList<>();

    @Data
    public static class DataInfoCls {
        private String key;
        private String keyCnName;
        private String realValue;
        private String unit;
    }

    @Data
    public static class DynamicAttrInfoCls {
        private String label;
        private String attr;
        private String realValue;
        private String unit;
    }
}
